<script setup lang="ts">
defineProps<{
  modelValue: number
}>()

const emit = defineEmits<{
  (e: 'update:modelValue', count: number): void
}>()
</script>

<template>
  <div class="a-page">
    {{ modelValue }}
    <button @click="emit('update:modelValue', 1)">修改数字</button>
  </div>
</template>

<style scoped></style>
